using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;

/// <summary>
/// 自定义渲染管线资源
/// </summary>
[CreateAssetMenu(menuName = "Rendering/Custom Render Pipeline")] // 创建管线资源
public class CustomRenderPipelineAsset :  RenderPipelineAsset
{
    // 选择一种批处理方式
    [SerializeField]
    bool useDynamicBatching = true, useGPUInstancing = true, useSRPBatcher = true;
    
    /// <summary>
    /// 创建渲染管线
    /// </summary>
    protected override RenderPipeline CreatePipeline()
    {
        return new CustomRenderPipeline(useDynamicBatching, useGPUInstancing, useSRPBatcher);
    }
}
